package com.tanger.permission.entity.role;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @Description 角色实体
 * @Author Hchenbin
 * @Date 2022/6/27 17:43
 * @Version 1.0
 */
@Data
@ApiModel("角色实体类")
@TableName("brt_base_role")
public class EntityRole implements Serializable{

    @ApiModelProperty("ID")
    @TableId(value = "ID",type = IdType.AUTO)
    private Long id;
    @ApiModelProperty("角色编码")
    private String roleCode;
    @ApiModelProperty("角色名")
    private String roleName;
    @ApiModelProperty("是否可用(1.是 0.否)")
    private Integer isAble;
    @ApiModelProperty("是否删除(1.是 0.否)")
    private Integer isDel;
    @ApiModelProperty("创建时间")
    private Long createTime;
    @ApiModelProperty("上级ID(默认为0)")
    private Long roleId;
}
